be at one's wits' end

茫然不知所措,智穷计尽; 智尽能索; 计尽智穷; 茫然无措